package com.magic.zhixin.handler.DelayTask;//package com.magic.miaoheyueapi.handler.DelayTask;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.Calendar;
//import java.util.Date;
//
//@RestController
//@RequestMapping("/test")
//public class TestController {
//
//   @Autowired
//   private DelayTaskClient delayTaskClient;
//
//    @RequestMapping("add")
//    public String add(){
//        Calendar calendar = Calendar.getInstance();
//        calendar.add(Calendar.SECOND,5);
//        Date exeTime = calendar.getTime();
//        String bussinessId ="00000";
//        DelayedTask delayedTask = new DelayedTask(null,bussinessId,exeTime);
//
//        delayTaskClient.addDelayTask(delayedTask);
//        return "suc";
//    }
//
//}
